﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Txt2Shp4Sharp.landm
{
    public class LandHeader
    {
        // 格式版本号
        private String formatVersion;
        // 数据产生单位
        private String dataProduceOrg;
        // 数据产生日期
        private String produceDate;

        // 坐标系
        private String coordinateSystem;
        // 几度分带
        private String degreeNo;
        // 投影类型
        private String projectionType;
        // 计量单位
        private String unit;
        // 带号
        private String degreeNum;
        // 精度
        private String precision;
        // 转换参数
        private String conversionParameter;

        public LandHeader()
        {
            DateTime dateTime = DateTime.Now;
            String dynProductDateStr = dateTime.ToString("yyyy-MM-dd");

            this.formatVersion = "1.0版本";
            this.dataProduceOrg = "xxx勘测技术公司";
            this.produceDate = dynProductDateStr;
            this.coordinateSystem = "2000国家大地坐标系";
            this.degreeNo = "3";//几度分带
            this.projectionType = "高斯克吕格";
            this.unit = "米";
            this.degreeNum = "36";
            this.precision = "0.001";//精度
            this.conversionParameter = "0,0,0,0,0,0,1";//精度	
        }

        /// <summary>
        /// 格式版本号
        /// </summary>
        public String FormatVersion{
            get{
                return formatVersion;
            }
            set {
                this.formatVersion = value;
            }
        }
        /// <summary>
        ///  数据产生单位
        /// </summary>
        public String DataProduceOrg{
            get
            {
                return dataProduceOrg;
            }
            set {
                this.dataProduceOrg = value;
            }
        }
        /// <summary>
        /// 数据产生日期
        /// </summary>
        public String ProduceDate{
            get
            {
                return produceDate;
            }
            set {
                this.produceDate = value;
            }
        }
        /// <summary>
        /// 坐标系
        /// </summary>
        public String CoordinateSystem
        {
            get
            {
                return coordinateSystem;
            }
            set {
                this.coordinateSystem = value;
            }
        }
        /// <summary>
        /// 几度分带
        /// </summary>
        public String DegreeNo
        {
            get
            {
                return degreeNo;
            }
            set {
                this.degreeNo = value;
            }
        }
        /// <summary>
        /// 投影类型
        /// </summary>
        public String ProjectionType
        {
            get
            {
                return projectionType;
            }
            set
            {
                this.projectionType = value;
            }
        }
        /// <summary>
        /// 计量单位
        /// </summary>
        public String Unit{
            get{
                return unit;
            }
            set {
                this.unit = value;
            }
        }
        /// <summary>
        /// 带号
        /// </summary>
        public String DegreeNum{
            get{
                return degreeNum;
            }
            set {
                this.degreeNum = value;
            }
        }
        /// <summary>
        /// 精度
        /// </summary>
        public String Precision
        {
            get
            {
                return precision;
            }
            set {
                this.precision = value;
            }
        }
        /// <summary>
        /// 转换参数
        /// </summary>
        public String ConversionParameter
        {
            get
            {
                return conversionParameter;
            }
            set {
                this.conversionParameter = value;
            }
        }
       
    }
}
